.NET Framework Class Library |
ConcurrentBag<(Of <(T>)>)..::.Count Property |
ConcurrentBag<(Of <(T>)>) Class See Also Send Feedback |
Gets the number of elements contained in the ConcurrentBag<(Of <(T>)>).
Namespace:
System.Collections.Concurrent
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public ReadOnly Property Count As Integer |
C# |
---|
public int Count { get; } |
Field Value
The number of elements contained in the ConcurrentBag<(Of <(T>)>).Implements
ICollection..::.CountRemarks
The count returned represents a moment-in-time snapshot of the contents
of the bag. It does not reflect any updates to the collection after
GetEnumerator()()() was called.